CC=/usr/bin/g++
CFLAGS=-O2 -pg
INCS=-I/usr/local/include/nemo/ -I/usr/include/boost
LIBS=-L/usr/local/lib -lnemo -lnemo_base -lnemo_cuda -lnemo_cpu
OBJS= NeuronType.o LSM.o

all: system $(OBJS)

system: system.cpp $(OBJS)
	$(CC) $(CFLAGS) -c system.cpp $(INCS)
	$(CC) $(CFLAGS) -o system system.o $(OBJS) $(INCS) $(LIBS)

LSM.o: LSM.cpp LSM.hh
	$(CC) $(CFLAGS) -c LSM.cpp $(INCS)

NeuronType.o: NeuronType.cpp NeuronType.hh
	$(CC) $(CFLAGS) -c NeuronType.cpp $(INCS) $(LIBS)

clean:
	rm -rf *.o *~
